<!doctype html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="keywords" content="星时代" />
    <%- include("layout/css_includ.ejs") %>
        <title>资源</title>
</head>

<body>
    <div class="container-fluid bg-nav">
        <div class="container">
            <div class="row">
                <div class="col-12 bg-nav">
                    <%- include("layout/nav.ejs") %>
                </div>
            </div>
        </div>
    </div>
    <!--头部结束-->
    <!--正文-->
    <div class="container">
        <div class="row">
            <!-- 可变区域-->
            <div class="col-12 bg-white my-3" style="min-height: 500px;">
                <div class="container-fluid">
                    <div class="row mt-3 w-100 p-0 m-0">
                        <div class="col-12 p-0 m-auto">
                            <nav aria-label="breadcrumb">
                                <ol class="breadcrumb">
                                    <li class="breadcrumb-item"><a href="/">首页</a></li>
                                    <li class="breadcrumb-item active" aria-current="/resource">资源</li>
                                </ol>
                            </nav>
                        </div>
                    </div>
                    <!--博客-->
                    <div class="row mt-3 mb-5 m-auto">
                        <% data.forEach(element=> { %>
                            <div class="col-sm-12 col-md-6 col-lg-3 px-0" style="margin:15px 0;">
                                <div class="card m-auto" style="width: 250px;">
                                    <div style="height: 160px;" class="overflow-hidden">
                                        <img src="<%= element.cover %> " style="height: inherit;" class="card-img-top fd"
                                        alt="...">
                                    </div>
                                    <div class="card-body">
                                        <h5 title="<%= element.name %>" class="card-title"
                                            style="overflow: hidden;text-overflow: ellipsis;white-space  : nowrap;">
                                            <%= element.name %>
                                        </h5>
                                        <div class="mt-4  text-right">
                                            <a href="http://www.scsoul.top:8080/file/download?fileName=<%= element.fileName %>&id=<%= element.id %>"
                                                class="btn btn-primary btn-sm">
                                                <i class="fa fa-download" aria-hidden="true"></i>
                                                &nbsp;
                                                <%= element.downloadCount %>
                                                    人已下载
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <% }) %>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 可变区域结束-->
    </div>

    <!--正文结束-->
    <%- include("layout/foot.ejs") %>
        <%- include("layout/js_includ.ejs") %>
</body>

</html>